package com.fsy.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName message
 */
@TableName(value ="message")
@Data
public class Message implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 消息内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 发送人id(网络咨询的id)
     */
    @TableField(value = "senderId")
    private Integer senderId;

    /**
     * 发送人name(网络咨询的name)
     */
    @TableField(value = "senderName")
    private String senderName;

    /**
     * 接收人Id(咨询师的id)
     */
    @TableField(value = "receiverId")
    private Integer receiverId;

    /**
     * 接受人Name(咨询师的name)
     */
    @TableField(value = "receiverName")
    private String receiverName;

    /**
     * 发送时间
     */
    @TableField(value = "sendTime")
    private String sendTime;

    /**
     * 是否已读消息--1-已读|2-未读
     */
    @TableField(value = "isRead")
    private Integer isRead;

    @TableField(exist = false)  //非数据库字段加
    private String beginTime;

    @TableField(exist = false)  //非数据库字段加
    private String endTime;

    @TableField(exist = false)  //非数据库字段加
    private int page;

    @TableField(exist = false)  //非数据库字段加
    private int limit;

    @TableField(exist = false)  //非数据库字段加
    private int offset;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}